package com.handu.luna.core.domain.promotion;

import com.handu.luna.core.domain.BaseRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by wangzailiang on 2014/8/5.
 */
public interface CashCardLogRepository extends BaseRepository<CashCardLog> {

    @Query("select z from CashCardLog z where z.cashCardId = ?1 order by z.id desc")
    public List<CashCard> findAll(long cashCardId);
}
